<template>
  <div class="detail">
    <PageHeader header-title="意见建议说一说"></PageHeader>
    <div class="detail-content">
      <div class="part top">
        <div class="user">
          <p class="name">匿名网友</p>
          <div>
            <p class="time">2024-01-01</p>
            <p class="classify">投诉/求助</p>
          </div>
        </div>
        <div class="content">
          <p>
            <template v-for="i in 100" :key="i">内容</template>
          </p>
        </div>
      </div>
      <div class="part bottom">
        <div class="department">
          <p class="name">巨野综合执法局回复</p>
          <p class="time">2024-01-01</p>
        </div>
        <div class="content">
          <p>
            <template v-for="i in 100" :key="i">内容</template>
          </p>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  import PageHeader from '../../components/common/PageHeader';
  
  export default {
    name: 'OpinionsDetail',
    components: {
      PageHeader,
    },
    props: {},
    data() {
      return {
        detailId: {
          type: [ String, Number ],
          default: '',
        },
      };
    },
    computed: {},
    watch: {},
    mounted() {
    },
    created() {
    },
    methods: {},
    onLoad(data) {
      this.detailId = data.id;
      this.getData();
    },
  };
</script>

<style lang="scss" scoped>
  .detail {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: white;
    border-bottom: 10px solid white;
    .detail-content {
      flex: 1;
      overflow: auto;
      .part {
        padding: 15px;
        & + .part {
          border-top: 15px solid #F3F4F6;
        }
        .content {
          margin-top: 15px;
          p {
            font-size: 14px;
            line-height: 1.5;
            color: #7d7d7d;
          }
        }
        &.top {
          .user {
            padding: 0 15px;
            font-size: 16px;
            line-height: 1;
            color: #021930;
            > div {
              margin-top: 10px;
              display: flex;
              align-items: center;
              justify-content: space-between;
              p {
                font-weight: 600;
              }
            }
          }
        }
        &.bottom {
          .department {
            border-bottom: 1px solid #F3F4F6;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-bottom: 15px;
            .name {
              color: #C1702E;
              font-size: 16px;
              line-height: 1;
            }
            .time {
              color: #d3d3d3;
              font-size: 14px;
              line-height: 1;
            }
          }
          .content {
            border-bottom: 1px solid #F3F4F6;
            padding-bottom: 15px;
          }
        }
      }
    }
  }
</style>
